'use strict';

/** @type {import('sequelize-cli').Migration} */
module.exports = {
  async up (queryInterface, Sequelize) {
    await queryInterface.addColumn('Articles', 'deleteAt', {
      type: Sequelize.DATE,
    })

    await queryInterface.addIndex('Articles', {
      fields: ['deleteAt'],
    })
  },

  async down (queryInterface, Sequelize) {
    await queryInterface.removeColumn('Articles', 'deleteAt')
  }
};
